package com.yupi.springbootinit.constant;/*
@author name
@data 2025/3/8-16:59
*/

import cn.hutool.core.util.RandomUtil;

/**
 * redis key的常量类
 */
public interface RedisConstants {

    String CACHE_ALL_CHART = "cache:chartAll:";

    String CACHE_MY_CHART = "cache:chartMy:";

    String CACHE_ID_CHART = "cache:idChart:";  //图表具体信息

    Long CACHE_NULL_TTL = 2L+Long.parseLong(RandomUtil.randomNumbers(1));  //随机生成长度为1的数字

    Long CACHE_CHART_TTL = 30L+Long.parseLong(RandomUtil.randomNumbers(1));

    Long CACHE_ID_TTL = 30L+Long.parseLong(RandomUtil.randomNumbers(1));

}
